build_guard "googletest" || return

print_title "Build for googletest" && cd "$BUILD_TOOL_DEP_ROOT/googletest"
cmake -S . -B "build" -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR -DCMAKE_BUILD_TYPE=Release
cmake --build "build" --config Release --target install

: '
Usage:
find_package(GTest CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE GTest::gtest GTest::gmock GTest::gtest_main)
'
